package com.chixing.pojo;

import java.io.Serializable;
import java.util.Date;


public class BasePojo implements Serializable {

    private Long ObjectId;     //mongodb对应数据库唯一标识ID
    private int memberId;//用户id
    private String orderId;//订单id
    private Date createTime; //创建时间
    private Float score;//评分
    private String write;//评论内容
    private int shopId;//店铺id
    private int carId;//carid


    public BasePojo(Long objectId, int memberId, String orderId, Date createTime, Float score, String write, int shopId, int carId) {
        ObjectId = objectId;
        this.memberId = memberId;
        this.orderId = orderId;
        this.createTime = createTime;
        this.score = score;
        this.write = write;
        this.shopId = shopId;
        this.carId = carId;
    }

    public BasePojo() {
    }


    public Long getObjectId() {
        return ObjectId;
    }

    public void setObjectId(Long objectId) {
        ObjectId = objectId;
    }

    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public String getWrite() {
        return write;
    }

    public void setWrite(String write) {
        this.write = write;
    }

    public int getShopId() {
        return shopId;
    }

    public void setShopId(int shopId) {
        this.shopId = shopId;
    }

    public int getCarId() {
        return carId;
    }

    public void setCarId(int carId) {
        this.carId = carId;
    }


    @Override
    public String toString() {
        return "BasePojo{" +
                "ObjectId=" + ObjectId +
                ", memberId=" + memberId +
                ", orderId='" + orderId + '\'' +
                ", createTime=" + createTime +
                ", score=" + score +
                ", write='" + write + '\'' +
                ", shopId=" + shopId +
                ", carId=" + carId +
                '}';
    }
}